<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui">

    <h:form id="ScintborganismListForm">

        <p:panel header="#{myBundle.ListScintborganismTitle}">

            <p:dataTable id="datalist" value="#{scintborganismController.items}" var="item"
                         selectionMode="single" selection="#{scintborganismController.selected}"
                         rowKey="#{item.scintborganismid}"
                         paginator="true"
                         rows="5"
                         rowsPerPageTemplate="5,10,20,30"
                         >

                <p:ajax event="rowSelect"   update="createButton viewButton editButton deleteButton"/>
                <p:ajax event="rowUnselect" update="createButton viewButton editButton deleteButton"/>

                <p:column sortBy="#{item.scintborganismid}" filterBy="#{item.scintborganismid}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScintborganismTitle_scintborganismid}"/>
                    </f:facet>
                    <h:outputText value="#{item.scintborganismid}"/>
                </p:column>
                <p:column sortBy="#{item.nombre}" filterBy="#{item.nombre}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScintborganismTitle_nombre}"/>
                    </f:facet>
                    <h:outputText value="#{item.nombre}"/>
                </p:column>
                <p:column sortBy="#{item.reprlegal}" filterBy="#{item.reprlegal}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScintborganismTitle_reprlegal}"/>
                    </f:facet>
                    <h:outputText value="#{item.reprlegal}"/>
                </p:column>
                <p:column sortBy="#{item.ruc}" filterBy="#{item.ruc}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScintborganismTitle_ruc}"/>
                    </f:facet>
                    <h:outputText value="#{item.ruc}"/>
                </p:column>
                <p:column sortBy="#{item.direccion}" filterBy="#{item.direccion}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScintborganismTitle_direccion}"/>
                    </f:facet>
                    <h:outputText value="#{item.direccion}"/>
                </p:column>
                <p:column sortBy="#{item.telefono1}" filterBy="#{item.telefono1}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScintborganismTitle_telefono1}"/>
                    </f:facet>
                    <h:outputText value="#{item.telefono1}"/>
                </p:column>
                <p:column sortBy="#{item.telefono2}" filterBy="#{item.telefono2}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScintborganismTitle_telefono2}"/>
                    </f:facet>
                    <h:outputText value="#{item.telefono2}"/>
                </p:column>
                <p:column sortBy="#{item.telefono3}" filterBy="#{item.telefono3}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScintborganismTitle_telefono3}"/>
                    </f:facet>
                    <h:outputText value="#{item.telefono3}"/>
                </p:column>
                <p:column sortBy="#{item.fax}" filterBy="#{item.fax}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScintborganismTitle_fax}"/>
                    </f:facet>
                    <h:outputText value="#{item.fax}"/>
                </p:column>
                <p:column sortBy="#{item.web}" filterBy="#{item.web}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScintborganismTitle_web}"/>
                    </f:facet>
                    <h:outputText value="#{item.web}"/>
                </p:column>
                <p:column sortBy="#{item.latitud}" filterBy="#{item.latitud}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScintborganismTitle_latitud}"/>
                    </f:facet>
                    <h:outputText value="#{item.latitud}"/>
                </p:column>
                <p:column sortBy="#{item.puntocardlat}" filterBy="#{item.puntocardlat}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScintborganismTitle_puntocardlat}"/>
                    </f:facet>
                    <h:outputText value="#{item.puntocardlat}"/>
                </p:column>
                <p:column sortBy="#{item.longitud}" filterBy="#{item.longitud}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScintborganismTitle_longitud}"/>
                    </f:facet>
                    <h:outputText value="#{item.longitud}"/>
                </p:column>
                <p:column sortBy="#{item.puntocardlon}" filterBy="#{item.puntocardlon}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScintborganismTitle_puntocardlon}"/>
                    </f:facet>
                    <h:outputText value="#{item.puntocardlon}"/>
                </p:column>
                <p:column sortBy="#{item.evaluacion}" filterBy="#{item.evaluacion}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScintborganismTitle_evaluacion}"/>
                    </f:facet>
                    <h:selectBooleanCheckbox id="evaluacion" value="#{item.evaluacion}" title="#{myBundle.EditScintborganismTitle_evaluacion}" required="true" requiredMessage="#{myBundle.EditScintborganismRequiredMessage_evaluacion}" disabled="true"/>
                </p:column>
                <p:column sortBy="#{item.email}" filterBy="#{item.email}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScintborganismTitle_email}"/>
                    </f:facet>
                    <h:outputText value="#{item.email}"/>
                </p:column>
                <p:column sortBy="#{item.fecharegistro}" filterBy="#{item.fecharegistro}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScintborganismTitle_fecharegistro}"/>
                    </f:facet>
                    <h:outputText value="#{item.fecharegistro}">
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:outputText>
                </p:column>
                <p:column sortBy="#{item.observaciones}" filterBy="#{item.observaciones}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScintborganismTitle_observaciones}"/>
                    </f:facet>
                    <h:outputText value="#{item.observaciones}"/>
                </p:column>
                <p:column sortBy="#{item.scintbtiporganid.scintbtiporganid}" filterBy="#{item.scintbtiporganid.scintbtiporganid}">
                    <f:facet name="header">
                        <h:outputText value="#{myBundle.ListScintborganismTitle_scintbtiporganid}"/>
                    </f:facet>
                    <h:outputText value="#{item.scintbtiporganid.scintbtiporganid}"/>
                </p:column>
                <f:facet name="footer">
                    <p:commandButton id="createButton" icon="ui-icon-plus"   value="#{myBundle.Create}" actionListener="#{scintborganismController.prepareCreate}" update=":ScintborganismCreateForm" oncomplete="ScintborganismCreateDialog.show()"/>
                    <p:commandButton id="viewButton"   icon="ui-icon-search" value="#{myBundle.View}" update=":ScintborganismViewForm" oncomplete="ScintborganismViewDialog.show()" disabled="#{empty scintborganismController.selected}"/>
                    <p:commandButton id="editButton"   icon="ui-icon-pencil" value="#{myBundle.Edit}" update=":ScintborganismEditForm" oncomplete="ScintborganismEditDialog.show()" disabled="#{empty scintborganismController.selected}"/>
                    <p:commandButton id="deleteButton" icon="ui-icon-trash"  value="#{myBundle.Delete}" actionListener="#{scintborganismController.delete}" update=":growl,datalist" disabled="#{empty scintborganismController.selected}"/>
                </f:facet>

            </p:dataTable>

        </p:panel>

    </h:form>

</ui:composition>